Total Resellers Credit API
POST /totalResellersCredit
Description
This API endpoint retrieves the total credit available to all resellers.
Request Body
The request uses GraphQL to perform the totalResellersCredit
query, which does not require any variables.
Query:
query totalResellersCredit {
totalResellersCredit
}
GraphQL Variables:
{}
Example Request:
curl --location '' \
--header 'Content-Type: application/json' \
--data '{"query":"query totalResellersCredit {\n totalResellersCredit\n}","variables":{}}'
Response:
-
Success (200 OK):
- The response includes the total credit value for all resellers.
{
"data": {
"totalResellersCredit": 50000
}
} -
Error (4XX/5XX):
- If there is an issue with the request or server error, the response will include an error message and status code.
Note:
This endpoint provides a summary of the total credit held by all resellers, which can be useful for understanding the overall credit distribution across your reseller network.